#ifndef TEXTMESSAGEEVENT_H
#define TEXTMESSAGEEVENT_H

#include "messageevent.h"


class TextMessageEvent : public MessageEvent
{
    Q_OBJECT
public:
    explicit TextMessageEvent(qint64 id,
                              qint64 sendingId,
                              qint64 conversationId,
                              qint64 createdTime,
                              qint64 senderId,
                              qint64 receiverId,
                              const QString &text,
                              QObject *parent = 0);

private:
    QString m_text;

public:
    virtual MessageEventType messageEventType() const;

public:
    const QString &text() const {
        return m_text;
    }

public:
    Converse::AbstractMessage *createMessage(const Converse::AbstractConversation &conversation,
                                     QObject *parent) const;    
};

#endif // TEXTMESSAGEEVENT_H
